<?php
	require 'conn.php';
	$sql=mysqli_query($conn,"SELECT * FROM comments ORDER BY id DESC");
	echo "<div style='width:1000px;display:inline-block;	'>";
	while($row=mysqli_fetch_array($sql))
	{
		echo "<div style='border-radius:20px;padding:10px;float:left;width:500px;border:3px solid white;'>";
		echo "昵称:".$row['name']."<br />";
		echo "邮箱:".$row['email']."<br />";
		echo "留言时间:".$row['time']."<br />";
		echo "留言内容:".$row['comment']."<br />";
		echo "</div>";	
	}
	echo "</div>";
	mysqli_close($conn);
?>

	